package day03;

public class ThreeForDemo {
    public static void main(String[] args) {
        int count = 0;
        for(int i = 1; i<=4;i++){
            for(int j = 1; j<=4;j++){
                for(int z = 1;z<=4;z++){
                    if(i!=j && j!=z && i!=z){
                        System.out.println(i+""+j+z+"\t");
                        if(++count == 6){
                            System.out.println();
                            count = 0;
                        }
                    }
                }
            }
        }
    }
}
